#include "head.h"
#include "rep.h"

int repl(struct Node *Hnode,int x,int y,int length,char *string)
{
    char* c = string;
    int i;
    for (i = 1; i <= length; i++)
    {
        delete(*FileHead, y + (Page - 1) * COLUMN, x);
    }
    for (; *c != '\0'; c++)
    {
        input(*FileHead, *c, y + (Page - 1) * COLUMN, x);
        x++;
    }
}